package com.seven.service;

import com.seven.spring.*;

@Component("userService")
@Scope("prototype")
public class UserService implements BeanNameAware, InitializaingBean,UserInterface {

    @Autowired
    private OrderService orderService;

    private String beanName;

    private String xxx;

    public void test(){
        System.out.println(orderService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName=beanName;
    }

    @Override
    public void afterPropertiesSet() {
        //''''''''''''
        System.out.println("初始化方法");
    }
}
